<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
  
</head>
<style>
  * {
    padding: 0;
    margin: 0;
  }
  
</style>
<body>
  <div style="width:500px">
    <div style="border:4px solid red;position: relative;">
      我是一个绝对定位的absolute元素
      <img style="position: absolute;" src="img/25/2.jpg" />
    </div>
  </div>
  
</body>
<script>
    

    
</script>
</html>
